﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="BookCourseListModule.ascx.cs"
    Inherits="ChapterX.Modules.BookCourseListModule" %>

<%@ Import Namespace="ChapterX.BusinessFacade" %>
<%@ Import Namespace="ChapterX.Common" %>

<div id="book-course-list-module">
<asp:Repeater ID="BookCourseList" runat="server">
    <HeaderTemplate>
        <table class="data-list">
        <thead>
            <tr>
                <td>课程名称</td>
                <td>课程号</td>
                <% if (!CurrentUserInfo.IsTeacher) { %>
                <td>教师</td>
                <% } %>
                <td>操作</td>
            </tr>
        </thead>
        <tbody>
    </HeaderTemplate>
    <ItemTemplate>
            <tr>
                <td><asp:HyperLink ID="HyperLink1" runat="server" Text='<%# Utils.FilterHtml(Eval("CourseName").ToString()) %>' NavigateUrl='<%# String.Format(
                        "{0}?{1}={2}", DataNavigateUrl, QueryKeys.COURSE_ID, Eval("CourseId")) %>'></asp:HyperLink></td>
                <td><%# Eval("CourseNumber")%></td>
                <% if (!CurrentUserInfo.IsTeacher) { %>
                <td><%# Eval("TeacherId")%></td>
                <% } %>
                <td><asp:Button runat="server" ID="button1" Text="删除" /></td>
            </tr>
    </ItemTemplate>
    <FooterTemplate>
        </tbody>
        </table>
    </FooterTemplate>
</asp:Repeater>
</div>